import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/global.less'
import * as eCharts from 'echarts'
/** 主题 */
import './assets/theme/chalk'
import './assets/theme/vintage'
import socketService from './util/socket_service'
// 将自动注册所有组件为全局组件
import dataV from '@jiaminghi/data-view'

Vue.use(dataV)
// 对服务端进行websocket的连接
socketService.Instance.connect()
Vue.prototype.$socket = socketService.Instance
Vue.prototype.$eCharts = eCharts
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
